package com.jiangnan.api.service

import com.jiangnan.entity.ChatRequest
import okhttp3.ResponseBody
import retrofit2.Response
import retrofit2.http.Body
import retrofit2.http.Header
import retrofit2.http.POST
import retrofit2.http.Streaming

interface DeepSeekApiService {
    // 流式接口，返回 ResponseBody 以便按行解析
    @Streaming
    @POST("v1/chat/completions")
    suspend fun getChatStream(
        @Body request: ChatRequest,
        @Header("Authorization") authHeader: String = "Bearer sk-eaviumrblqxwdhtyujtngpxvgzwumgiosybikqhmrovhbhuj"
    ): Response<ResponseBody>
}
